<?php

use IDock\Printer\ProposalStatusPrinter;
use IDock\Visitor\EPolicyDownloadVisitor;
use IDock\Visitor\NonCar\NonCarInquiryVisitor;
use IDock\Visitor\NonCar\NonCarProductVisitor;
use IDock\Visitor\PolicyInfoVisitor;
use IDock\Visitor\PolicyPaymentVisitor;
use IDock\Visitor\Premium\PremiumCarTaxVisitor;
use IDock\Visitor\Premium\PremiumChargingPileVisitor;
use IDock\Visitor\Premium\PremiumCoverageVisitor;
use IDock\Visitor\Premium\PremiumExtInfoVisitor;
use IDock\Visitor\Premium\PremiumInquiryVisitor;
use IDock\Visitor\Premium\PremiumNoCarVisitor;
use IDock\Visitor\Premium\PremiumPolicyVisitor;
use IDock\Visitor\Premium\PremiumRelationVisitor;
use IDock\Visitor\Premium\PremiumUnderwritingVisitor;
use IDock\Visitor\Premium\PremiumVehicleVisitor;
use IDock\Visitor\ProposalRecallVisitor;
use IDock\Visitor\ProposalStatusVisitor;
use IDock\Visitor\RenewalInquiryVisitor;
use IDock\Visitor\UnderwritingRecallVisitor;
use IDock\Visitor\UploadFileVisitor;
use IDock\Visitor\VehicleActualValueVisitor;
use IDock\Visitor\VehicleModelVisitor;

require_once('./vendor/autoload.php');

$IDock = new \IDock\IDock\IDock();

$ZYICConfig = [
    'gateway' => '*************',
    'logsDir' => '*************',
    'timeout' => '*************',
    'chalCode' => '*************',
    'userCode' => '*************',
    'productCode' => '*************',
    'planCode' => '*************',//燃油车
//    'planCode' => 'PLAN003',//新能源

    'proxy' => '118.123.247.195:45131',
];

require_once('config.php');

$IDock->setBean('ZYIC', $ZYICConfig);


$shortName = 'ZYIC';
//$shortName = 'ACIC';


$vin = 'LZWADAGA8HF791218';
$engineNo = '8H73121140';
$licenseNo = '川A9K7R5';
$firstRegisterDate = '2018-05-04';
$vehicleModel = '东南DN7151M5T轿车';

$orderNo = 'D20230807070000002041570f983d914';//

$biStartData = '2023-08-10 00:00:00';
$ciStartData = '2023-09-24 00:00:00';
$biEndData = '2024-08-10 00:00:00';
$ciEndData = '2024-09-23 23:58:59';

//$engineNo = 'SVW71217DN';
//$vin = 'LSVGZ6183J2037364';
global $testResponse;
$testResponse = '{"code":"0000","message":"成功","content":{"biDto":{"prpTSelfCoefficients":[{"selfProtectionUp":"","selfChannelDown":"","insuredAgeCof":"","newInsuredCarCof":"","customerChannelCof":"","fullRiskInsuranceCof":"","loyaltyCof":"","attaches":{},"proposalNo":"Z04010203612024036176","selfChannelUp":"","selfProtectionDown":"","insuredSexCof":"","sumQuantityCof":"","carAgeCof":"","threeLimitCof":"","lossNumberCof":"","sspecialVehicleCof":""}],"endDate":"2025-07-10","planName":"衡信业套出","sumPremiumIlog":0.0,"policyMode":"1","oldPolicyNo":"","caRenewalType":"0","returnFlag":"0","prpToperatorInfos":[],"disRate":25.0,"maxDisRate":25.0,"lowestUnderWriteDisCount":0.0,"riskCode":"DEB","prpTprofitDetails":[{"profitRate":1.0,"profitType":"1","attaches":{},"profitCode":"C20"},{"profitRate":1.0,"profitType":"1","attaches":{},"profitCode":"C29"},{"profitRate":1.0,"profitType":"1","attaches":{},"profitCode":"C30"},{"profitRate":1.2411,"profitType":"1","attaches":{},"profitCode":"C31"},{"profitRate":1.0,"profitType":"1","attaches":{},"profitCode":"C08"}],"prpTprofits":[{"discount":1.2411,"profitType":"1","attaches":{}}],"sumBenchMarkPremium":761.65,"proposalNo":"Z04010203612024036176","iopSumPremium":0.0,"prpTitemKinds":[{"dedBenchPremium":0.0,"endDate":"2025-07-10","itemCode":"0001","benchMarkPremium":761.65,"discount":1.2411,"itemNo":1,"itemKind_Flag5":"0","checked":false,"noTaxPremium":891.77,"itemKindNo":1,"taxFlag":"1","riskCode":"DEB","mappingKindCode":"0301600","attaches":{},"proposalNo":"Z04010203612024036176","taxRate":6.0,"deductibleRate":1.0,"dedPremium":0.0,"itemDetailName":"车辆","costPrem":646.95,"startDate":"2024-07-11","kindCode":"402","flag":" 1  0","adjustRate":0.0,"additionalCostRate":0.25,"premium":945.28,"rate":0.0,"kindName":"机动车第三者责任保险","currency":"CNY","taxFee":53.51,"shortRate":100.0,"amount":1500000.0,"shortRateFlag":"3","calculateFlag":"Y","endHour":24,"basePremium":571.24,"startHour":0,"deductible":0.0}],"ciMainDto":{"driverInfos":[],"lossInfos":[],"carShipTaxSubs":[],"reInsureItems":[{"engineNo":"1FGK3150657","insurerCode":"","attaches":{},"serialNo":1,"insurerCompanyType":"2","demandNo":"V0101ZYIC510024070200579047666","vin":"LSJA36E63KZ089149"}],"ciVehiclePriceLists":[],"agentInfos":[],"certificateInfos":[],"riskPolicies":[],"carShipTaxContrastInfos":[],"commissionInfos":[{"companyRateUpper":0.0,"attaches":{},"rateType":"0","rateUpper":0.0,"demandNo":"V0101ZYIC510024070200579047666"}],"riskWarnings":[],"violationInfos":[],"claimInfos":[],"woleVehiclePriceLists":[],"insureValids":[],"ksQueryErrors":[],"riskItemInfos":[{"peccancyAdjustValue":0.0,"insureYears":0,"noClaimAdjustReason":"01","claimAdjustValue":0.0,"attaches":{},"demandNo":"V0101ZYIC510024070200579047666","claimAdjustLevel":"0","claimTimes":0}],"lastPolicys":[{"lastPolicyExpireDate":"2024-07-11 00:00","attaches":{},"localPolicy":"1","lastPolicyEffectiveDate":"2023-07-11 00:00","lastReplacementValue":0.0,"demandNo":"V0101ZYIC510024070200579047666","lastProducerCode":"52","lastPolicyTotalPremium":0.0}],"tipsMessages":[],"ciVehicleModels":[],"endorValids":[],"coverageInfos":[],"precisionScoreInfos":[{"score":"50","scoreCode":"基础评分","demandNo":"V0101ZYIC510024070200579047666","updateTime":"2023-09-30","attaches":{},"serialNo":0}],"contractInfos":[],"rtacarInfos":[],"insureDemands":[{"licenseNo":"川GJ1919","demandTime":"2024-07-10 10:37:25","isConfirm":"0","comCode":"51000000","engineNo":"1FGK3150657","riskCode":"DEB","renewalFlag":"0","attaches":{},"proposalNo":"504010203612024033316","demandNo":"V0101ZYIC510024070200579047666","frameNo":"LSJA36E63KZ089149","newCarFlag":"0","operatorCode":"04000732","pastDate":"202407201037","requestType":"V0101","insurerArea":""}],"carModelInfos":[{"deptName":"国产","seriesCode":"RWARH","carName":"荣威CSA7151GDMA 4G互联朗豪版","transId":"V0101ZYIC510024070200579047666","configType":"UD","categoryName":"轿车","tradeName":"上海汽车集团股份有限公司","modelFlag":"无标识","modelCode":"BRWARHUD0006","brand":"荣威","brandCode":"RWA","tradeCode":"M02875","certiType":"2","noticeType":"CSA7151GDMA","categoryCode":"7","attaches":{},"serialNo":0,"modelIdCode":"BRWARHUD000670A1","series":"荣威i5","deptCode":"0"}],"coveragePremiumItems":[],"riskKinds":[],"carShipTaxs":[]},"demandNo":"V0101ZYIC510024070200579047666","minDisRate":0.0,"startDate":"2024-07-11","loweseUnderWriteSerialNo":"","prpTcarDevices":[],"effectInfos":[],"prpTvehicleInfos":[],"prpTILogRates":[{"fee":"","riskCode":"DEB","feeTypeName":"业务费用","feeRate":"8.0","attaches":{},"proposalNo":"Z04010203612024036176","feeTypeCode":"18"},{"fee":"","riskCode":"DEB","feeTypeName":"手续费","feeRate":"25.0","attaches":{},"proposalNo":"Z04010203612024036176","feeTypeCode":"16"}],"prpTexpenses":[{"transferTax":0.0,"noTaxFee":210.32,"salvationRate":25.0,"maxDisRate":25.0,"taxFee":12.62,"encouragePerformance":71.34,"attaches":{},"taxRate":6.0,"encouragePerformanceRate":8.0,"salvationFee":222.94,"dutyRatio":0.0,"minDisRate":0.0}],"prpTILogMains":[{"protectionCof":"","actuaryCof":"","carInspectionFlag":"0","autoBusiness":"","description":"","targetCof":"","isFeeDiscount":"0","distributionRatio":"0","attaches":{},"proposalNo":"Z04010203612024036176","countNCDCof":"","carPriceCof":"","programmeType":"","countCof":"","selfChannelCof":"","operation":"免验车承保","upBusinessDisRate":"25.0","selfProtectionCof":""}],"prpTNCDCoefficients":[{"vehiclesDisCof":"","carGroupCof":"","carAgeLevelCof":"","attaches":{},"proposalNo":"Z04010203612024036176","businessNCD1Cof":"","insSituationCof":"","isInsureExceptCof":"","regionalBenchmarksCof":"","ageSexCof":"","upBusinessNCDCof":"","trafficNCD2Cof":"","trafficNCD1Cof":"","qcellCoreCof":"","businessNCD2Cof":""}],"immeValidFlag":"0","prpTmainSubs":[{"flag":"111","cIStartDate":"2024-07-11 00:00:00","mainPolicyNo":"Z04010203312024035716","ciInsuranceFlag":"1","attaches":{},"proposalNo":"Z04010203612024036176","cIEndDate":"2025-07-11 00:00:00","cistartDate":1720627200000,"ciUndwrtPriorityFlag":"1","ciendDate":1752163200000,"ciInsuranceType":"1"}],"prpTplans":[],"prpTUndwrtCoefficients":[{"entireDiscount":"1.2411","uwPolicyType":"2","entireExpDiscount":"0.0","billCOMCOR":"1.0555","billCOR":"1.1711","billCTPCOR2":"1.4023","entireUWritingDiscount":"1.2411","entireInitialDiscount":"1.2411","floatPricingAdjustValue":"0.0","ncdBpremELR":"0.9313","multiPlanSwitch":"","billCTPELR":"0.9562","effectInfo":"[{\"effectCode\":\"01\",\"effectName\":\"NCD\",\"effectValue\":\"1.0879\",\"effectinfo\":\"商业险车龄5年||商业险过户||商业险连续投保年数为0年||商业险连续承保期间出险次数为0||交强险过户||交强险上年出险金额0.0\"},{\"effectCode\":\"02\",\"effectName\":\"车型\",\"effectValue\":\"0.5801\",\"effectinfo\":\"荣威CSA7151GDMA轿车\"},{\"effectCode\":\"03\",\"effectName\":\"是否交商贴补\",\"effectValue\":\"0.2207\",\"effectinfo\":\"交强险预期赔付率95.62%\"},{\"effectCode\":\"04\",\"effectName\":\"三责险限额\",\"effectValue\":\"-0.0733\",\"effectinfo\":\"150.0万\"}]","uwPricingAdjustValue":"1.2411","billCTPCOR":"1.2862","ctpSunlightScore":"0.0","comSunlightScore":"0.0","billCOMAcquisitionFeeRate":"0.08","initialELR":"0.8411","initialPricingAdjustValue":"1.2411","sunLightID":"9000417","channelAdjustValue":"1","attaches":{},"entireRecommenDiscount":"1.2411","proposalNo":"Z04010203612024036176","recommenPricingAdjustValue":"1.2411","uwDiscFixed":"0.0","expectPricingAdjustValue":"0.0","autonomyAdjustValue":"1","billCOMTransFeeRate":"0.25","uwDiscLimit":"1.5","comCostPrem":"646.95","ctpCostPremFlag":"2","billELR":"0.8411","recommenELR":"0.8411","sunlightScore":"60.0","entireRawInitialDiscount":"1.2411","billPricingAdjustValue":"1.2411","ctpCostPrem":"856.96","billCOR2":"1.2872","uwDiscFloor":"0.95","billCOMCOR2":"1.1716","billCOMELR":"0.7255","entireControlIntialDiscount":"1.2411","isPrice":"1","entireFloatDiscount":"0.0","aboveThresholdFlag":"1"}],"prpTchargeDetails":[],"prpTitemKindSubs":[],"sumPremium":945.28,"endHour":"24","prpTengages":[{"clauseCode":"T0011","autoFlag":"1","clauses":"尊敬的客户：自收到正式保单日期起，您可通过本公司网站、客服电话、营业网点核实保单及理赔等信息，若对查询结果有异议，请联系本公司。联系方式为登录我司网址https://www.generali-china.cn 或拨打我司客服热线：400-600-2700。","riskCode":"DEB","attaches":{},"serialNo":2,"proposalNo":"Z04010203612024036176","clauseName":"告知特约"},{"clauseCode":"T0021","autoFlag":"1","clauses":"同意保险公司将车险相关信息与政府部门、保险行业协会等相关第三方进行信息共享，用于风险防范、社会管理等目的。","riskCode":"DEB","attaches":{},"serialNo":3,"proposalNo":"Z04010203612024036176","clauseName":"交管数据传输特约"},{"clauseCode":"T0022","autoFlag":"1","clauses":"保险公司已履行投保如实告知义务。","riskCode":"DEB","attaches":{},"serialNo":4,"proposalNo":"Z04010203612024036176","clauseName":"如实告知特约"},{"clauseCode":"T0023","autoFlag":"1","clauses":"保险期间内，如发生本保险合同约定的保险事故造成被保险车辆损失或第三者财产损失，保险人可采取实物或修复方式进行保险赔付。","riskCode":"DEB","attaches":{},"serialNo":5,"proposalNo":"Z04010203612024036176","clauseName":"修复方式特约"},{"clauseCode":"T0033","autoFlag":"1","clauses":"本保单保险费为含税金额，其中不含税保险费891.77元、增值税53.51元。","riskCode":"DEB","attaches":{},"serialNo":6,"proposalNo":"Z04010203612024036176","clauseName":"增值税特约"}],"startHour":"00","finalRatio":1.2411},"imageBaseDataList":[],"proposalNoBI":"Z04010203612024036176","message":"当前投保方案超过管控要求！","profitCode":{"ncdCause":"过户车，不浮动","directSalesFlag":"1.2411","ncdRate":"1.0000"},"ciDto":{"prpTSelfCoefficients":[{"selfProtectionUp":"","selfChannelDown":"","insuredAgeCof":"","newInsuredCarCof":"","customerChannelCof":"","fullRiskInsuranceCof":"","loyaltyCof":"","attaches":{},"proposalNo":"Z04010203312024035716","selfChannelUp":"","selfProtectionDown":"","insuredSexCof":"","sumQuantityCof":"","carAgeCof":"","threeLimitCof":"","lossNumberCof":"","sspecialVehicleCof":""}],"endDate":"2025-07-10","planName":"衡信业套出","policyMode":"1","oldPolicyNo":"","prpTlimits":[],"caRenewalType":"0","returnFlag":"0","prpToperatorInfos":[],"disRate":4.0,"maxDisRate":4.0,"prpTcarAccientRecords":[],"riskCode":"DDA","prpTprofitDetails":[{"profitRate":1.0,"profitType":"1","attaches":{},"profitCode":"C01"},{"profitRate":1.0,"profitType":"2","attaches":{},"profitCode":"13"}],"prpTprofits":[{"discount":1.0,"profitType":"1","attaches":{}},{"discount":1.0,"profitType":"2","attaches":{}}],"sumBenchMarkPremium":0.0,"proposalNo":"Z04010203312024035716","prpTitemKinds":[{"dedBenchPremium":0.0,"endDate":"2025-07-10","itemCode":"0001","benchMarkPremium":950.0,"discount":1.0,"itemNo":1,"itemKind_Flag2":"1","checked":false,"noTaxPremium":896.23,"itemKindNo":1,"taxFlag":"1","riskCode":"DDA","mappingKindCode":"030100","attaches":{},"proposalNo":"Z04010203312024035716","taxRate":6.0,"deductibleRate":1.0,"dedPremium":0.0,"itemDetailName":"车辆","costPrem":856.96,"startDate":"2024-07-11","kindCode":"BZ","flag":" 1   ","adjustRate":0.0,"additionalCostRate":0.0,"premium":950.0,"rate":0.0,"kindName":"机动车辆交通事故强制责任保险","currency":"CNY","taxFee":53.77,"shortRate":100.0,"amount":200000.0,"shortRateFlag":"3","calculateFlag":"Y","endHour":24,"basePremium":0.0,"startHour":0,"deductible":0.0}],"ciMainDto":{"driverInfos":[],"lossInfos":[],"carShipTaxSubs":[{"exceedDaysCount":0,"unitRate":300.0,"taxDue":300.0,"taxStartDate":"2024-01-01","taxEndDate":"2024-12-31","taxConditionCode":"T","annualTaxAmount":300.0,"taxLocationCode":"510000","certiType":"1","attaches":{},"serialNo":"0","totalAmount":300.0,"deductionDueProportion":0.0,"taxUnitTypeCode":"1","overDue":0.0,"deduction":0.0,"certiNo":"01ZYIC510024070200579003734614"}],"reInsureItems":[],"ciVehiclePriceLists":[],"agentInfos":[{"attaches":{},"rateType":"0","demandNo":"01ZYIC510024070200579003734614"}],"certificateInfos":[],"riskPolicies":[],"carShipTaxContrastInfos":[],"commissionInfos":[],"riskWarnings":[],"violationInfos":[],"claimInfos":[],"woleVehiclePriceLists":[],"insureValids":[],"ksQueryErrors":[],"riskItemInfos":[],"lastPolicys":[],"tipsMessages":[],"ciVehicleModels":[],"endorValids":[],"coverageInfos":[{"additionRate":0.0,"driverRate":0.0,"lastYearStartDate":"2023-07-10 13:00","peccancyAdjustValue":0.0,"districtRate":0.0,"reInsureFlag":"0","coverageCode":"BZ","claimAdjustValue":0.0,"attaches":{},"serialNo":0,"coverageType":"1","lastBillDate":"2023-06-30","demandNo":"01ZYIC510024070200579003734614","standPremium":950.0,"basedPremium":950.0,"rateFloatFlag":"03","lastYearEndDate":"2024-07-10 13:00"}],"precisionScoreInfos":[],"contractInfos":[],"rtacarInfos":[],"insureDemands":[{"licenseNo":"川GJ1919","demandTime":"2024-07-10 10:36:41","preferentialPremium":0.0,"isConfirm":"0","comCode":"51000000","engineNo":"1FGK3150657","taxConditionCode":"T","riskCode":"DDA","renewalFlag":"0","attaches":{},"proposalNo":"504010203312024033009","demandNo":"01ZYIC510024070200579003734614","frameNo":"LSJA36E63KZ089149","newCarFlag":"0","operatorCode":"04000732","pastDate":"202407201036","requestType":"01","message":"成功","insurerArea":""}],"carModelInfos":[],"coveragePremiumItems":[],"riskKinds":[],"carShipTaxs":[{"sumTax":300.0,"taxRegistryNumber":"91510000314408981Q","sumOverdue":0.0,"taxPayerName":"周国强","annualTaxDue":300.0,"sumTaxDefault":0.0,"taxTermTypeCode":"08","taxConditionCode":"T","calcTaxFlag":"2","certiType":"1","attaches":{},"taxAmountFlag":"1","sumRefundTax":0.0,"taxPayerIdentificationCode":"510121199108037218","declareStatusIA":"0","certiNo":"01ZYIC510024070200579003734614"}]},"demandNo":"01ZYIC510024070200579003734614","minDisRate":0.0,"startDate":"2024-07-11","effectInfos":[],"prpTvehicleInfos":[],"prpTILogRates":[{"fee":"","riskCode":"DDA","feeTypeName":"业务费用","feeRate":"29.0","attaches":{},"proposalNo":"Z04010203312024035716","feeTypeCode":"18"},{"fee":"","riskCode":"DDA","feeTypeName":"手续费","feeRate":"4.0","attaches":{},"proposalNo":"Z04010203312024035716","feeTypeCode":"16"}],"prpTexpenses":[{"transferTax":0.0,"noTaxFee":33.82,"salvationRate":4.0,"maxDisRate":4.0,"taxFee":2.03,"encouragePerformance":259.91,"attaches":{},"taxRate":6.0,"encouragePerformanceRate":29.0,"salvationFee":35.85,"dutyRatio":0.0,"minDisRate":0.0}],"prpTILogMains":[{"protectionCof":"","actuaryCof":"","carInspectionFlag":"","autoBusiness":"","description":"","targetCof":"","isFeeDiscount":"0","distributionRatio":"0","attaches":{},"proposalNo":"Z04010203312024035716","countNCDCof":"","carPriceCof":"","programmeType":"","countCof":"","selfChannelCof":"","operation":"","upBusinessDisRate":"25.0","selfProtectionCof":""}],"prpTNCDCoefficients":[{"vehiclesDisCof":"","carGroupCof":"","carAgeLevelCof":"","attaches":{},"proposalNo":"Z04010203312024035716","businessNCD1Cof":"","insSituationCof":"","isInsureExceptCof":"","regionalBenchmarksCof":"","ageSexCof":"","upBusinessNCDCof":"","trafficNCD2Cof":"","trafficNCD1Cof":"","qcellCoreCof":"","businessNCD2Cof":""}],"immeValidFlag":"0","prpTplans":[],"prpTUndwrtCoefficients":[{"entireDiscount":"1.2411","uwPolicyType":"2","entireExpDiscount":"0.0","billCOMCOR":"1.0555","billCOR":"1.1711","billCTPCOR2":"1.4023","entireUWritingDiscount":"1.2411","entireInitialDiscount":"1.2411","floatPricingAdjustValue":"0.0","ncdBpremELR":"0.9313","multiPlanSwitch":"","billCTPELR":"0.9562","effectInfo":"[{\"effectCode\":\"01\",\"effectName\":\"NCD\",\"effectValue\":\"1.0879\",\"effectinfo\":\"商业险车龄5年||商业险过户||商业险连续投保年数为0年||商业险连续承保期间出险次数为0||交强险过户||交强险上年出险金额0.0\"},{\"effectCode\":\"02\",\"effectName\":\"车型\",\"effectValue\":\"0.5801\",\"effectinfo\":\"荣威CSA7151GDMA轿车\"},{\"effectCode\":\"03\",\"effectName\":\"是否交商贴补\",\"effectValue\":\"0.2207\",\"effectinfo\":\"交强险预期赔付率95.62%\"},{\"effectCode\":\"04\",\"effectName\":\"三责险限额\",\"effectValue\":\"-0.0733\",\"effectinfo\":\"150.0万\"}]","uwPricingAdjustValue":"1.2411","billCTPCOR":"1.2862","ctpSunlightScore":"0.0","comSunlightScore":"0.0","billCOMAcquisitionFeeRate":"0.08","initialELR":"0.8411","initialPricingAdjustValue":"1.2411","sunLightID":"9000417","channelAdjustValue":"1","attaches":{},"entireRecommenDiscount":"1.2411","proposalNo":"Z04010203312024035716","recommenPricingAdjustValue":"1.2411","uwDiscFixed":"0.0","expectPricingAdjustValue":"0.0","autonomyAdjustValue":"1","billCOMTransFeeRate":"0.25","uwDiscLimit":"1.5","comCostPrem":"646.95","ctpCostPremFlag":"2","billELR":"0.8411","recommenELR":"0.8411","sunlightScore":"60.0","entireRawInitialDiscount":"1.2411","billPricingAdjustValue":"1.2411","ctpCostPrem":"856.96","billCOR2":"1.2872","uwDiscFloor":"0.95","billCOMCOR2":"1.1716","billCOMELR":"0.7255","entireControlIntialDiscount":"1.2411","isPrice":"1","entireFloatDiscount":"0.0","aboveThresholdFlag":"1"}],"prpTchargeDetails":[],"sumPremium":950.0,"endHour":"24","prpTcarShipTaxs":[{"payEndDate":"2024-12-31","taxItemName":"载客汽车","taxPayerIdentifier":"510121199108037218","freeRate":0.0,"completeSeatCount":5.0,"attaches":{},"areaCode":"510000","lateFee":0.0,"previousPay":0.0,"taxDue":300.0,"taxPayerName":"周国强","taxActual":300.0,"taxItemDetailName":"乘用车","sumPayTax":300.0,"extendChar2":"0","taxUnit":1.0,"taxItemCode":"A","extendNum2":0.0,"extendNum1":2.0,"taxItemDetailCode":"A1","taxUnitText":"辆","taxRelief":0.0,"taxRelifFlag":"T","payStartDate":"2024-01-01"}],"prpTengages":[{"clauseCode":"T0011","autoFlag":"1","clauses":"尊敬的客户：自收到正式保单日期起，您可通过本公司网站、客服电话、营业网点核实保单及理赔等信息，若对查询结果有异议，请联系本公司。联系方式为登录我司网址https://www.generali-china.cn 或拨打我司客服热线：400-600-2700。","riskCode":"DDA","attaches":{},"serialNo":2,"proposalNo":"Z04010203312024035716","clauseName":"告知特约"},{"clauseCode":"T0021","autoFlag":"1","clauses":"同意保险公司将车险相关信息与政府部门、保险行业协会等相关第三方进行信息共享，用于风险防范、社会管理等目的。","riskCode":"DDA","attaches":{},"serialNo":3,"proposalNo":"Z04010203312024035716","clauseName":"交管数据传输特约"},{"clauseCode":"T0022","autoFlag":"1","clauses":"保险公司已履行投保如实告知义务。","riskCode":"DDA","attaches":{},"serialNo":4,"proposalNo":"Z04010203312024035716","clauseName":"如实告知特约"},{"clauseCode":"T0023","autoFlag":"1","clauses":"保险期间内，如发生本保险合同约定的保险事故造成被保险车辆损失或第三者财产损失，保险人可采取实物或修复方式进行保险赔付。","riskCode":"DDA","attaches":{},"serialNo":5,"proposalNo":"Z04010203312024035716","clauseName":"修复方式特约"},{"clauseCode":"T0033","autoFlag":"1","clauses":"本保单保险费为含税金额，其中不含税保险费896.23元、增值税53.77元。","riskCode":"DDA","attaches":{},"serialNo":6,"proposalNo":"Z04010203312024035716","clauseName":"增值税特约"}],"startHour":"00","finalRatio":1.0},"proposalNoCI":"Z04010203312024035716"}}';

try {


//续保查询接口
    if (0) {
        //续保查询接口
        $renewalInquiryVisitor = new RenewalInquiryVisitor();
        //车架号
        $renewalInquiryVisitor->vin = $vin;
        //发动机号
        $renewalInquiryVisitor->engineNo = $engineNo;
        //车牌号
        $renewalInquiryVisitor->licenseNo = $licenseNo;
        $renewalInquiryVisitor->argc['type'] = 1;

        $response = $IDock->renewalInquiry($shortName, $renewalInquiryVisitor);

        var_dump($response->isSuccess());
        var_dump($response->getError());

        /**
         * @var $printer \IDock\Printer\RenewalInquiryPrinter
         */
        $printer = $response->getPrinter();
        var_dump($printer->toArray());
        exit;
    }

//车辆车型查询接口
    if (0) {
        //车辆车型查询接口
        $vehicleModelVisitor = new VehicleModelVisitor();
        //车架号
        $vehicleModelVisitor->vin = $vin;
        //$vehicleModelVisitor->vin = '';
        //发动机号
        $vehicleModelVisitor->engineNo = $engineNo;
        //车牌号
        $vehicleModelVisitor->licenseNo = $licenseNo;
        //初登时间
//        $vehicleModelVisitor->firstRegisterDate = $firstRegisterDate;
        //车型编码
//        $modelName = preg_replace('/[\x{4e00}-\x{9fff}]+/u','',$vehicleModel);
        $vehicleModelVisitor->vehicleModel = $vehicleModel;
        $vehicleModelVisitor->argc['chalCode'] = 'ZFHXY';
        $vehicleModelVisitor->argc['userCode'] = 'ZFHXYTU001';
//        $vehicleModelVisitor->argc['searchCode'] = $modelName;
        //$vehicleModelVisitor->vehicleModel = '';

        $response = $IDock->vehicleModel($shortName, $vehicleModelVisitor);
        var_dump($response->isSuccess());
        var_dump($response->getError());

        /**
         * @var $printer \IDock\Printer\VehicleModelPrinter
         */
        $printer = $response->getPrinter();
        if($printer) var_dump($printer->toArray());
        exit;
    }

//车辆实际价格
    if (0) {
        //车辆实际价格
        $vehicleActualValueVisitor = new VehicleActualValueVisitor();
        $vehicleActualValueVisitor->startDate = $biStartData;
        $vehicleActualValueVisitor->firstRegisterDate = $firstRegisterDate;
        //车辆价格
        $vehicleActualValueVisitor->vehiclePrice = '54800';
        //能源类型
        $vehicleActualValueVisitor->energyType = 'E01';
        //是否新能源
        $vehicleActualValueVisitor->isNewEnergy = false;
        //使用性质
        $vehicleActualValueVisitor->useNatureCode = '01';
        //车辆用途
        $vehicleActualValueVisitor->causeType = '001';
        //车辆种类
        $vehicleActualValueVisitor->carKindCode = '100';
        //座位数
        $vehicleActualValueVisitor->vehicleSeat = '5';
        //荷载质量
        $vehicleActualValueVisitor->vehicleTonnage = '0';

        $response = $IDock->vehicleActualValue($shortName, $vehicleActualValueVisitor);
        var_dump($response->isSuccess());
        var_dump($response->getError());

        /**
         * @var $printer \IDock\Printer\VehicleActualValuePrinter
         */
        $printer = $response->getPrinter();
        var_dump($printer->toArray());
        exit;
    }

//询价前置
//保费计算
//核保
    if (1) {

        /**
         * 询价主信息
         */
        $premiumInquiryVisitor = new PremiumInquiryVisitor();
        //商业险起保日期
        $premiumInquiryVisitor->biStartData = $biStartData;
        //商业险终保日期
        $premiumInquiryVisitor->biEndData = $biEndData;
        //交强险起保日期
        $premiumInquiryVisitor->ciStartData = $ciStartData;
        //交强险终保日期
        $premiumInquiryVisitor->ciEndData = $ciEndData;
        //商业险即时生效
        $premiumInquiryVisitor->biEffectFlag = false;
        //交强险即时生效
        $premiumInquiryVisitor->ciEffectFlag = false;

        $premiumInquiryVisitor->isNewEnergy = false;

        /**
         * 车辆信息
         */
        $premiumVehicleVisitor = new PremiumVehicleVisitor();
        //是否新车
        $premiumVehicleVisitor->isNewVehicle = '1';
        //车架号
        $premiumVehicleVisitor->vin = $vin;
        //发动机号
        $premiumVehicleVisitor->engineNo = $engineNo;
        //车牌号
        $premiumVehicleVisitor->licenseNo = $licenseNo;
        //初登时间
        $premiumVehicleVisitor->firstRegisterDate = $firstRegisterDate;
        //过户时间
        $premiumVehicleVisitor->transferDate = '';
        //是否过户车
        $premiumVehicleVisitor->isTransfer = '0';
        //发证时间
        $premiumVehicleVisitor->issueDate = '';
        //车型编码
        $premiumVehicleVisitor->vehicleModel = $vehicleModel;
        //车型编码代码
        $premiumVehicleVisitor->vehicleModelCode = 'DZABJD0007';
        //$premiumVehicleVisitor->vehicleModelCode = 'BTYOSPUB0014';
        //车型名称
        $premiumVehicleVisitor->vehicleName = '丰田TV7152X轿车';
        //车价
        $premiumVehicleVisitor->vehiclePrice = '85535';
        //车价含税
        $premiumVehicleVisitor->vehiclePriceTax = '85535';
        //协商价格
        $premiumVehicleVisitor->actualValue = '82968.95';
        //座位数
        $premiumVehicleVisitor->vehicleSeat = '5';
        //使用性质
        $premiumVehicleVisitor->useNatureCode = '01';
        //所属性质
        $premiumVehicleVisitor->attachNature = '01';
        //车辆用途
        $premiumVehicleVisitor->causeType = '001';
        //车辆种类
        $premiumVehicleVisitor->carKindCode = '100';
        //能源类型代码
        $premiumVehicleVisitor->energyTypeCode = 'E01';
        //号牌颜色代码
        $premiumVehicleVisitor->licenseColorCode = '01';
        //号牌种类代码
        $premiumVehicleVisitor->licenseTypeCode = '02';
        //交管车辆类型代码
        $premiumVehicleVisitor->vehicleStyleCode = 'K33';
        //功率
        $premiumVehicleVisitor->power = '79.0';
        //排量
        $premiumVehicleVisitor->vehicleExhaust = '1.496';
        //整备质量
        $premiumVehicleVisitor->wholeWeight = '10.2';
        //荷载质量
        $premiumVehicleVisitor->vehicleTonnage = '0.0';
        //进口标识
        $premiumVehicleVisitor->vehicleImport = 'I2';
        //是否能源车
        $premiumVehicleVisitor->isNewEnergy = '0';
        //纯电续航里程(公里)
        $premiumVehicleVisitor->pureRange = '';
        //车辆来历凭证编号
        $premiumVehicleVisitor->carCertificateNo = '';
        //开具车辆来历凭证所载日期
        $premiumVehicleVisitor->carCertificateDate = '';
        //车辆来历凭证种类代码
        $premiumVehicleVisitor->carCertificateType = '';

        /**
         * 关系人
         */
        $premiumRelationVisitor = new PremiumRelationVisitor();
        //姓名
        $premiumRelationVisitor->name = '廖皓';
        //联系方式
        $premiumRelationVisitor->mobile = '13550217453';
        //类型
        $premiumRelationVisitor->typeCode = 'R1';
        //证件类型
        $premiumRelationVisitor->certificateTypeCode = '01';
        //证件号码
        $premiumRelationVisitor->certificateNo = '51390219960714105X';
        //地址
        $premiumRelationVisitor->address = '四川省成都市龙泉驿区龙泉车城西一路185号1栋1单元20楼2001号';
        //邮箱
        $premiumRelationVisitor->email = '18982272991@qq.com';
        //证件有效期
        $premiumRelationVisitor->certificateStartDate = '2000-01-01';
        //证件失效期
        $premiumRelationVisitor->certificateEndDate = '2050-01-01';

        /**
         * 缴税信息
         */
        $premiumCarTaxVisitor = new PremiumCarTaxVisitor();
        //缴税内心
        $premiumCarTaxVisitor->taxTypeCode = 'T01';
        //纳税人姓名
        $premiumCarTaxVisitor->taxpayerName = '樊鑫';
        //纳税人证件类型
        $premiumCarTaxVisitor->taxpayerCertificateTypeCode = '01';
        //纳税人证件号码
        $premiumCarTaxVisitor->taxpayerCertificateNo = '51390219960714105X';
        //纳税人电话
        $premiumCarTaxVisitor->taxpayerPhone = '13550217453';
        //纳税起期
        $premiumCarTaxVisitor->taxStartDate = '2023-08-10 00:00:00';
        //纳税止期
        $premiumCarTaxVisitor->taxEndDate = '2024-08-09 23:59:59';
        //减免税方案代码
        $premiumCarTaxVisitor->taxReductionCode = '';
        //减免税原因代码
        $premiumCarTaxVisitor->taxReductionReasonCode = '';
        //税务机关名称
        $premiumCarTaxVisitor->taxDepartment = '';
        //税务机关代码
        $premiumCarTaxVisitor->taxDepartmentCode = '';
        //开具完税凭证地区代码
        $premiumCarTaxVisitor->taxPaidAreaCode = '';
        //完税凭证填发日期
        $premiumCarTaxVisitor->taxDocumentDate = '';
        //减免比例 百分比
        $premiumCarTaxVisitor->taxFreeRate = '';
        //减税金额 元
        $premiumCarTaxVisitor->taxExemption = '';
        //减免完税凭证号
        $premiumCarTaxVisitor->taxDocumentNumber = '';

        //险种

        //
        $premiumCoverageVisitor = new PremiumCoverageVisitor();
        $premiumCoverageVisitor->coverageCode = 'C01001';
        $premiumCoverageVisitor->amount = '200000';

//        $premiumCoverageVisitor1 = new PremiumCoverageVisitor();
//        $premiumCoverageVisitor1->coverageCode = 'C05001';
//        $premiumCoverageVisitor1->amount = '40000';
//        $premiumCoverageVisitor1->unitAmount = '10000';
////        $premiumCoverageVisitor1->deductionRate = '5';
////
//        $premiumCoverageVisitor2 = new PremiumCoverageVisitor();
//        $premiumCoverageVisitor2->coverageCode = 'C03001';
//        $premiumCoverageVisitor2->amount = '1000000';
////        $premiumCoverageVisitor2->deductionRate = '5';
//
//        $premiumCoverageVisitor3 = new PremiumCoverageVisitor();
//        $premiumCoverageVisitor3->coverageCode = 'C02001';
//        $premiumCoverageVisitor3->amount = '109409.8';


        //新能源充电桩信息
        $premiumChargingPileVisitor = new PremiumChargingPileVisitor();

        $premiumChargingPileVisitor->seqNo = '1';
        //充电桩类型
        $premiumChargingPileVisitor->chargingPileKind = 'PK1';
        //充电桩安装地点类型
        $premiumChargingPileVisitor->chargingPileAddressType = 'PA1';
        //充电桩使用年限
        $premiumChargingPileVisitor->chargingPileYearLimit = 'PY1';
        //充电桩编码
        $premiumChargingPileVisitor->chargingPileCode = '123456';
        //充电桩型号
        $premiumChargingPileVisitor->chargingPileType = 'BCS100500';
        //充电桩地址
        $premiumChargingPileVisitor->chargingPileAddress = '地面充电桩';
        //损失保险保额
        $premiumChargingPileVisitor->lossAmount = '';
        //责任保险保额
        $premiumChargingPileVisitor->liabilityAmount = '10000';

        /**
         * 拓展信息
         */
        $premiumExtInfoVisitor = new PremiumExtInfoVisitor();
        //验车情况
        $premiumExtInfoVisitor->carCheckCode = 'CS3';//已验
        //免验原因
        $premiumExtInfoVisitor->carCheckReasonKind = '';
        //验车人
        $premiumExtInfoVisitor->carChecker = '张三';
        //验车日期
        $premiumExtInfoVisitor->carCheckDate = '2023-08-02';
        //验车地点
        $premiumExtInfoVisitor->carAddress = '';
        //是否送修
        $premiumExtInfoVisitor->isMonopoly = '0';
        //送修代码
        $premiumExtInfoVisitor->repairCode = '';
        //送修名称
        $premiumExtInfoVisitor->repairName = '';
        //自主定价系数
        $premiumExtInfoVisitor->selfPricingFactor = '';
        //自主核保系数
        $premiumExtInfoVisitor->underwritingFactor = '';
        //期望折扣
        $premiumExtInfoVisitor->expectedDiscount = '';
        //是否贷款车
        $premiumExtInfoVisitor->isLoanCar = '';
        //贷款机构名称
        $premiumExtInfoVisitor->loanOrg = '';

        //珠峰拓展

        $premiumExtInfoVisitor->argc['platOrderNo'] = 'C20231201110525912000207270';
        $premiumExtInfoVisitor->argc['businessNo'] = 'HX202312011105255951';


        //添加车辆信息
        $premiumInquiryVisitor->setVehicleVisitor($premiumVehicleVisitor);
        //添加投保人
        $premiumInquiryVisitor->setApplicantVisitor($premiumRelationVisitor);
        //添加被保人
        $premiumInquiryVisitor->setInsuredVisitor($premiumRelationVisitor);
        //添加车主
        $premiumInquiryVisitor->setOwnerVisitor($premiumRelationVisitor);
        //车船税
        $premiumInquiryVisitor->setCarTaxVisitor($premiumCarTaxVisitor);

        /**
         * 非车列表
         */
        $nonCarInquiryVisitor = new NonCarInquiryVisitor();
        ////投保份数
        //$nonCarInquiryVisitor->setApplicantVisitor($premiumInquiryVisitor->getApplicantVisitor());
        ////产品代码
        //$nonCarInquiryVisitor->prodCode = '';
        ////方案代码
        //$nonCarInquiryVisitor->schemeCode = '';
        ////每份保额
        //$nonCarInquiryVisitor->prePremium = '';
        ////总保费
        //$nonCarInquiryVisitor->sumPremium = '';

        //险种添加
//        $premiumInquiryVisitor->coverageVisitorAppend($premiumCoverageVisitor1);
//        $premiumInquiryVisitor->coverageVisitorAppend($premiumCoverageVisitor2);
//        $premiumInquiryVisitor->coverageVisitorAppend($premiumCoverageVisitor3);
        $premiumInquiryVisitor->coverageVisitorAppend($premiumCoverageVisitor);
        //新能源充电桩
//        $premiumInquiryVisitor->chargingPileVisitorAppend($premiumChargingPileVisitor);
        //拓展信息
        $premiumInquiryVisitor->setExtInfoVisitor($premiumExtInfoVisitor);
        //非车信息
        $premiumInquiryVisitor->setNonCarInquiryVisitor($nonCarInquiryVisitor);
        $premiumInquiryVisitor->setNonCarUnderwritingVisitor($nonCarInquiryVisitor);

        //询价前置
//        $response = $IDock->preInquiry($shortName, $premiumInquiryVisitor);
//        var_dump($response->isSuccess());
//        var_dump($response->getError());
//        /**
//         * @var $printer \IDock\Printer\preInquiryPrinter;
//         */
//        $printer = $response->getPrinter();
//        var_dump($printer->toArray());
//        exit;

        //询价
        $response = $IDock->premiumInquiry($shortName, $premiumInquiryVisitor);
        var_dump($response->isSuccess());
        var_dump($response->getError());

        /**
         * @var $printer \IDock\Printer\Premium\PremiumInquiryPrinter;
         */
        $printer = $response->getPrinter();
        if ($printer) {
            var_dump($printer->toArray());
        }
//
        exit;

        /**
         * 核保信息
         */
        $premiumUnderwritingVisitor = new PremiumUnderwritingVisitor();
        $premiumUnderwritingVisitor->biInquiryNo = '';
        $premiumUnderwritingVisitor->ciInquiryNo = '';

        $premiumUnderwritingVisitor->agreement = [];

        $premiumInquiryVisitor->setUnderwritingVisitor($premiumUnderwritingVisitor);
        //核保
        $response = $IDock->underwriting($shortName, $premiumInquiryVisitor);

        var_dump($response->isSuccess());
        var_dump($response->getError());

        /**
         * @var $printer \IDock\Printer\PremiumUnderwritingPrinter;
         */
        $printer = $response->getPrinter();

        if ($printer) var_dump($printer->toArray());
        exit;
    }

//支付
    if (0) {
        $policyPaymentVisitor = new PolicyPaymentVisitor();
        $policyPaymentVisitor->inquiryNo = '599510803602023000184';
        $policyPaymentVisitor->biInquiryNo = '';
        $policyPaymentVisitor->ciInquiryNo = '599510803602023000184';
        $response = $IDock->policyPayment($shortName, $policyPaymentVisitor);

        var_dump($response->isSuccess());
        var_dump($response->getError());
        /**
         * @var $printer \IDock\Printer\PolicyPaymentPrinter
         */
        $printer = $response->getPrinter();

        var_dump($printer->toArray());
        exit;
    }

//影像资料上传
    if (0) {
        $uploadFileVisitor = new UploadFileVisitor();
        $uploadFileVisitor->inquiryNo = 'M232010136320230000010';
        $uploadFileVisitor->biInquiryNo = 'T232010080820230000014';
        $uploadFileVisitor->ciInquiryNo = 'T232010080120230000010';

        $appType = 'G_HX';//一级代理和二级代理
        $orgNum = '07000002';//出单机构
        $oprId = '00000020';//操作员编码
        $upType = '2';//上传方式 1（文件流），2（ftp）
        $imageList = [
            [
                'imgName' => 'test111.jpg',//要求英文
//                'base64Img' => base64_encode(file_get_contents(__DIR__ . '/test.jpg')),//图片base64编码
                'filedSuffix' => 'jpg',//文件后缀
                'filedPath' => 'https://p0.itc.cn/q_70/images03/20220512/77ed76720a1f40ef94948761dda05655.jpeg',//图片地址 ftp模式必传
            ],
        ];
        foreach ($imageList as $val){
            $uploadFileVisitor->fileAppend('10017',$val['filedPath'],'');
        }
        $uploadFileVisitor->argc['isNewCar'] = 1;
        $uploadFileVisitor->argc['platOrderNo'] = 'C20230816095559578000106043';

        $response = $IDock->UploadFile($shortName, $uploadFileVisitor);

        var_dump($response->isSuccess());
        var_dump($response->getError());

        /**
         * @var  $printer \IDock\Printer\UploadFilePrinter
         */
        $printer = $response->getPrinter();

        if(!empty($printer)) var_dump($printer->toArray());
        exit;
    }

//投保单查询
    if (0) {
        $proposalStatusVisitor = new ProposalStatusVisitor();

        $proposalStatusVisitor->inquiryNo = '599510803602023000279';
        $proposalStatusVisitor->biInquiryNo = '';
        $proposalStatusVisitor->ciInquiryNo = '599510803602023000279';
        $proposalStatusVisitor->argc['platOrderNo'] = '111';
        $response = $IDock->proposalStatus($shortName, $proposalStatusVisitor);

        var_dump($response->isSuccess());
        var_dump($response->getError());

        /*** @var $printer ProposalStatusPrinter; */
        $printer = $response->getPrinter();

        var_dump($printer);
        exit;
    }

//撤单
    if (0) {
        $proposalRecallVisitor = new ProposalRecallVisitor();

        $proposalRecallVisitor->inquiryNo = '599510803682023000036';
        $proposalRecallVisitor->biInquiryNo = '';
        $proposalRecallVisitor->ciInquiryNo = '599510803682023000036';
        $proposalRecallVisitor->reason = '客户注销';
        $proposalRecallVisitor->argc['OrgCode'] = '51080503';

        $response = $IDock->proposalRecall($shortName, $proposalRecallVisitor);

        var_dump($response->isSuccess());
        var_dump($response->getError());

        /**
         * @var $printer \IDock\Printer\ProposalRecallPrinter
         */
        $printer = $response->getPrinter();
        var_dump($printer->toArray());
        exit;
    }

//核保撤单
    if (0) {
        $underwritingRecallVisitor = new UnderwritingRecallVisitor();

        $underwritingRecallVisitor->inquiryNo = 'M232010136320230000010';
        $underwritingRecallVisitor->biInquiryNo = 'T232010080820230000014';
        $underwritingRecallVisitor->ciInquiryNo = 'T232010080120230000010';
        $underwritingRecallVisitor->reason = '投保注销';
        $underwritingRecallVisitor->argc['OrgCode'] = '51080503';


        $underwritingRecallVisitor->argc['platOrderNo'] = 'C20230816095559578000106043';

        $response = $IDock->underwritingRecall($shortName, $underwritingRecallVisitor);

        var_dump($response->isSuccess());
        var_dump($response->getError());

        /**
         * @var $printer \IDock\Printer\UnderwritingRecallPrinter
         */
        $printer = $response->getPrinter();
        if(!empty($printer)) var_dump($printer->toArray());
        exit;

    }

//电子保单下载
    if (0) {
        $EPolicyDownloadVisitor = new EPolicyDownloadVisitor();

        $EPolicyDownloadVisitor->policyNo = '204000103612024000017';

        $response = $IDock->EPolicyDownload($shortName, $EPolicyDownloadVisitor);

        var_dump($response->isSuccess());
        var_dump($response->getError());


        /**
         * @var $printer \IDock\Printer\EPolicyDownloadPrinter
         */
        $printer = $response->getPrinter();
        var_dump($printer);
        exit;
    }

//保单详情
    if (0) {
        $policyInfoVisitor = new PolicyInfoVisitor();

        $policyInfoVisitor->policyNo = 'C20230816095559578000106043';
        $policyInfoVisitor->argc['platOrderNo'] = 'C20230816095559578000106043';
        $response = $IDock->policyInfo($shortName, $policyInfoVisitor);
        var_dump($response->isSuccess());
        var_dump($response->getError());
        var_dump($response->getPrinter()->toArray());
        exit;
    }

    //非车保单详情
    if (1) {
        $policyInfoVisitor = new PolicyInfoVisitor();

        $policyInfoVisitor->policyNo = 'C20230816095559578000106043';
        $policyInfoVisitor->argc['platOrderNo'] = 'C20230816095559578000106043';
        $demo = $IDock->getBean($shortName);
        $response = $demo->nonCarPolicyInfo($policyInfoVisitor);
        var_dump($response->isSuccess());
        var_dump($response->getError());
        var_dump($response->getPrinter()->toArray());
        exit;
    }

} catch (Exception $e) {
    var_dump("异常抛出：".$e->getFile()." ".$e->getLine().$e->getMessage());
}
